package com.example.springbootdemo.service;

import com.example.springbootdemo.entity.Dept;
import com.example.springbootdemo.mapper.DeptDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService{
    @Autowired
    private DeptDao deptMapper;

    @Override
    public List<Dept> findAll() {
        return deptMapper.findAll();
    }

/*
    @Override
    public boolean insert() {
        return deptMapper.insert();
    }
*/


}
